import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/scss/index.scss'
import './permission'
import './plugins/flexible'
import './assets/icons' // icon
import plugins from '@/plugins'
import * as echarts from 'echarts'
import defaultSettings from './settings'


Vue.prototype.$echarts = echarts
Vue.prototype.$settings = defaultSettings
Vue.config.productionTip = false


Vue.use(plugins)


// 引入mock
if (process.env.VUE_APP_MOCK) {
  console.log('========MOCK开启了==========')
  require('@/mock')
}

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
